import { getSilentAccessToken, getSilentRefreshToken, removeSilentToken, setSilentToken } from '@/utils/auth.utils';
import { BaseRequest } from './baseRequest';

export class SilentRequest extends BaseRequest {
  getToken(): string {
    return getSilentAccessToken();
  }

  getRefreshTokenValue(): string {
    return getSilentRefreshToken();
  }

  handleAuthorized(): void {
    removeSilentToken();
  }

  setTokenValue(accessToken: string, refreshToken: string): void {
    setSilentToken(accessToken, refreshToken);
  }
}
